package com.project.frba.bi.extraction.fileXLS;

import jxl.Cell;
import jxl.Sheet;

public class SheetXLS {
	FileXLS file;
	int sheetNumber; 
	Sheet sheet; 
	
	public SheetXLS(){
	}
	
	//This two method must be executed before anyone in this class
	public void setFile(FileXLS file){
		this.file=file;
	}
	public void setSheetNumber(int number){
		this.sheetNumber=number;
	}
	
	public Sheet getSheet(){
		if(this.sheet==null){
			file.getSheet(this.sheetNumber);
		}
		return this.sheet;
	}
		
	public String getCell(int row, int column){
		return this.sheet.getCell(row,column).getContents();		
	}
	
	

}
